package com.flyduck.util;

import javax.servlet.http.HttpServletRequest;

/**
 * @program: flyduck-admin
 * @description:
 * @author: flyduck
 * @create: 2020-05-10 19:33
 **/
public class RequestUtil {

    public static ThreadLocal<HttpServletRequest> local = new ThreadLocal<>();

    public static HttpServletRequest getRequest(){
        return local.get();
    }

    public static void setRequest(HttpServletRequest request){
         local.set(request);
    }

}
